<?php echo elgg_view('golfscore/title');?>
<?php
/**
 * Add bookmark page
 *
 * @package ElggBookmarks
 */

$golf_score = elgg_get_golf_score(array(
		'golf_score_id' =>get_input('golf_score_id'),
		'active_flg' => 1,
	));
$golf_score = $golf_score[0];
gatekeeper();

elgg_set_context('owner');
elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());

$title = elgg_echo('golfscore:add');

$default = array (
		'title' => $title,
		'courses' => elgg_get_golf_course(),
		'score' => $golf_score
);
$body = elgg_view_form('golfscore/edit', array('id' => '__enter_score_form','class'=> '_enter_edit_score'), $default);

echo $body;

?>
<div class="btnaddscore"><span></span></div>
<script type="text/javascript">
	changeTitle({
				'uname':'<?php echo elgg_get_logged_in_user_entity()->name;?>',
				'pageid':VIEW_ENTER_SCORE,
			});
</script>